package com.teaRestaurant.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.teaRestaurant.domain.DTO.DishPageQueryDTO;
import com.teaRestaurant.domain.VO.DishPageQueryVO;
import com.teaRestaurant.domain.entity.Dishes;

import java.util.List;
import java.util.Map;

public interface DishService {
    PageInfo<DishPageQueryVO> list(DishPageQueryDTO dishPageQueryDTO);

    void insert(Dishes dishes);

    void delete(List<Long> ids2);

    void update(Dishes dishes);

    void updateStatus(Long id);

    DishPageQueryVO getById(Long id);

    List<Dishes> listByCId(Long id);

    Map getDishSellCount();
}
